Calculates the automated persisted query hash for a given queryName
Hash or null if a query with the name queryName could not be found